import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
import Vue from 'vue'
/* 班级 */
/* 班级分类 */
export const getClassType = (params) => getAction("/sys/classes/classType/list", params);
export const getclassTypeType = (params) => getAction("/sys/classes/classType/getList", params);
export const classTypeAdd = (params) => postAction("/sys/classes/classType/add", params);
export const classTypeDel = (params) => deleteAction("/sys/classes/classType/delete", params);
export const classqueryById = (params) => getAction("/sys/classes/classType/queryById", params);
export const classTypeEdit = (params) => postAction("/sys/classes/classType/edit", params);
//班级管理
export const classMainadd = (params) => postAction("/sys/classes/classMain/add", params);
export const classMainedit = (params) => postAction("/sys/classes/classMain/edit", params);
//班级分类
export const courseTypelist = (params) => getAction("/sys/courseType/list", params);
export const courseTypeAdd = (params) => postAction("/sys/courseType/add", params);
export const courseTypequeryById = (params) => getAction("/sys/courseType/queryById", params);
export const courseTypeEdit = (params) => postAction("/sys/courseType/edit", params);
export const courseTypeDel = (params) => deleteAction("/sys/courseType/delete", params);
export const getListCourseType = (params) => getAction("/sys/courseType/getList", params); //列表查询
//所有班级
export const getAllClassTable = (params) => getAction("/sys/course/list", params);
export const AllClassTDel = (params) => deleteAction("/sys/course/delete", params);
export const courseAdd = (params) => postAction("/sys/course/add", params);
export const courseEdit = (params) => postAction("/sys/course/edit", params);
//添加课件
export const getTreeCourseInfo = (params) => getAction("/sys/courseInfo/getTypeList", params);
export const courseInfoAdd = (params) => postAction("/sys/courseInfo/addDir", params);
export const getInfoCourseInfo = (params) => getAction("/sys/course/queryById", params);
export const coursedel = (params) => deleteAction("/sys/courseInfo/delete", params);
export const courseInfoAddVideo = (params) => postAction("/sys/courseInfo/add", params);
export const courseInfoList = (params) => getAction("/sys/courseInfo/list", params);
export const videoGetInfo = (params) => getAction("/sys/courseInfo/queryById", params);
export const deleteBatch = (params) => deleteAction("/sys/courseInfo/deleteBatch", params);
export const editDir = (params) => postAction("/sys/courseInfo/editDir", params);
//项目设置
export const faceTeachProjectAdd = (params) => postAction("/sys/faceTeach/faceTeachProject/add", params);
export const faceTeachProjectEdit = (params) => postAction("/sys/faceTeach/faceTeachProject/edit", params);
export const faceTeachProjectlist = (params) => getAction("/sys/faceTeach/faceTeachProject/list", params);
export const faceTeachProjectqueryById = (params) => getAction("sys/faceTeach/faceTeachProject/queryById", params);
export const faceTeachProjectdelete = (params) => deleteAction("/sys/faceTeach/faceTeachProject/deleteBatch", params);
export const teacherMaingetlist = (params) => getAction("/sys/classes/teacherMain/list", params);

//班级设置
export const teacherMainadd = (params) => postAction("/sys/faceTeach/faceTeachClass/add", params);
export const faceTeachClass = (params) => getAction("/sys/faceTeach/faceTeachClass/list", params);
export const faceTeachClasstable = (params) => getAction("/sys/faceTeach/faceTeachClass/list", params);
export const faceTeachClassdelete = (params) => deleteAction("/sys/faceTeach/faceTeachClass/delete", params);
export const faceTeachClasscopy = (params) => getAction("/sys/faceTeach/faceTeachClass/copy", params);
export const faceTeachClassqueryById = (params) => getAction("/sys/faceTeach/faceTeachClass/queryById", params);
export const faceTeachClassedit = (params) => postAction("/sys/faceTeach/faceTeachClass/edit", params);
//任务设置
//上课签到
export const getfaceTeachClassSign = (params) => getAction("/sys/faceTeach/faceTeachClassSign/queryByClassId", params);
export const faceTeachClassSignadd = (params) => postAction("/sys/faceTeach/faceTeachClassSign/add", params);
export const faceTeachClassSignedit = (params) => postAction("/sys/faceTeach/faceTeachClassSign/edit", params);
//排班
export const faceTeachPartDateaddBatch = (params) => postAction("/sys/faceTeach/faceTeachPartDate/addBatch", params);
export const getfaceTeachPartDatelist = (params) => getAction("/sys/faceTeach/faceTeachPartDate/list", params);
export const faceTeachPartaddBatch = (params) => postAction("/sys/faceTeach/faceTeachPart/addBatch", params);
export const getfaceTeachPartqueryList = (params) => getAction("/sys/faceTeach/faceTeachPart/queryList", params);
//结业资格
export const faceTeachClassGraduationsave = (params) => postAction("/sys/faceTeach/faceTeachClassGraduation/save", params);
export const faceTeachClassGraduationqueryByClassId = (params) => getAction("/sys/faceTeach/faceTeachClassGraduation/queryByClassId", params);
/* 考试资格 */
export const faceTeachClassExamOnlinesave = (params) => postAction("sys/faceTeach/faceTeachClassExamOnline/save", params);
/* 练习*/
export const getfaceTeachClassPartPracticelist = (params) => getAction("sys/teach/faceTeachClassPartPractice/list", params);
export const examPracticeMainlist = (params) => getAction("/examPractice/examPracticeMain/list", params);
export const faceTeachClassPartPracticeadd = (params) => postAction("/sys/teach/faceTeachClassPartPractice/add", params);
export const examPracticeMainqueryById = (params) => getAction("/sys/teach/faceTeachClassPartPractice/queryByPartId", params);
export const faceTeachPartDateisDelete = (params) => getAction("/sys/faceTeach/faceTeachPartDate/isDelete", params);
/* 反思*/
export const faceTeachQuestionnaireMainlist = (params) => getAction("/sys/faceTeach/faceTeachQuestionnaireMain/list", params);
export const faceTeachClassThinkadd = (params) => postAction("/sys/faceTeach/faceTeachClassThink/add", params);
export const faceTeachClassThinkqueryById = (params) => getAction("/sys/faceTeach/faceTeachClassThink/queryById", params);
export const faceTeachClassThinkedit = (params) => postAction("/sys/faceTeach/faceTeachClassThink/edit", params);
/* 教师端首页 */
export const faceTeachgetProList = (params) => getAction("/sys/faceTeach/l_lecturer/getProList", params);
export const l_lecturergetClassList = (params) => getAction("/sys/faceTeach/l_lecturer/getClassList", params);
export const l_lecturergetSignList = (params) => getAction("/sys/faceTeach/l_lecturer/getSignList", params);
export const l_lecturergetPartList = (params) => getAction("/sys/faceTeach/l_lecturer/getPartList", params);
export const getgetPartById = (params) => getAction("/sys/faceTeach/l_lecturer/getPartById", params); //详情弹框上侧
export const getSignl_lecturerLogInfo = (params) => getAction("/sys/faceTeach/l_lecturer/getSignLogInfo", params); //
export const getReportCode = (params) => getAction("/sys/faceTeach/l_lecturer/getReportCode", params); //
export const getUngrouped = (params) => getAction("/sys/faceTeach/faceTeachPersonnelGroup/getUngrouped", params); //
export const autoGroup = (params) => postAction("/sys/faceTeach/faceTeachPersonnelGroup/autoGroup", params); //
export const getGroupAndPersonnel = (params) => getAction("/sys/faceTeach/faceTeachPersonnelGroup/getGroupAndPersonnel", params);
export const saveGroupAndPersonnel = (params) => postAction("/sys/faceTeach/faceTeachPersonnelGroup/saveGroupAndPersonnel", params);
export const getUngroupedList = (params) => getAction("/sys/faceTeach/faceTeachPersonnelGroup/getUngroupedList", params);
export const deletegroupone = (params) => deleteAction("/sys/faceTeach/faceTeachPersonnelGroup/delete", params);
export const getClassGroup = (params) => getAction("/sys/faceTeach/faceTeachPersonnelGroup/getClassGroup", params);
export const faceTeachPersonnelGroup = (params) => postAction("/sys/faceTeach/faceTeachPersonnelGroup/updateGroupType", params);
export const getNames = (params) => getAction("/sys/faceTeach/l_lecturer/random", params);

//带班老师端
//话题讨论
export const gettablelistfaceTeach = (params) => getAction("/sys/faceTeach/l_talk/list", params);
export const faceTeachgetone = (params) => getAction("/sys/faceTeach/l_talk/queryById", params);
export const l_talkadd = (params) => postAction("/sys/faceTeach/l_talk/add", params);
export const l_talkdelete = (params) => deleteAction("/sys/faceTeach/l_talk/delete", params);
/* 报道大屏 */
export const getbdtkinfo= (params) => getAction("/sys/faceTeach/t_faceTeachReport/fullScreen", params);
/* 签到大屏 */
export const getqdinfo = (params) => getAction("sys/faceTeach/faceTeachClassSignLog/fullScreen", params);
/* 获取所有班级 */
export const getallclass = (params) => getAction("/sys/classes/teacherMain/getClass", params);
// 获取问卷
export const getQuestionnaire = (params) => getAction("/sys/questionnaire/questionnaireMain/pageList", params);
//作业列表
export const getHomeworkList = (params) => getAction("/sys/task/taskOrigin/list", params);
//新增作业
export const addHomework = (params) => postAction("/sys/task/taskOrigin/add", params);
//修改作业
export const editHomework = (params) => postAction("/sys/task/taskOrigin/edit", params);
//删除作业
export const delHomework = (params) => deleteAction("/sys/task/taskOrigin/delete", params);
//获取学生作业提交情况
export const getHomeworkSubmit = (params) => getAction("/sys/task/task/page", params);
//查看作业上传详情
export const getHomeworkDetail = (params) => getAction("/sys/task/taskUploadAnswer/queryByTaskIdAndStudentId", params);
//查看作业问卷详情
export const getHomeworkQuestionnaire = (params) => getAction("/sys/task/taskUploadAnswer/queryByTaskQuestion", params);
